package com.wanyangproject.androidlearning.designMode.chainOfResponsibity;

public class GeneralHandler extends BusinessHandler {

    public GeneralHandler(BusinessHandler successor) {
        super(successor);
    }

    @Override
    public void discount(float price) {
        super.discount(price);
        if (price < 0.4){
            System.out.println("总经理处理了"+price+"折");
        }else {
            successor.discount(price);
        }
    }

}
